package com.mmd.manage.service.impl;

import com.mmd.common.entity.MmdDict;
import com.mmd.common.enums.DictTypeEnums;
import com.mmd.manage.dao.MmdDictDao;
import com.mmd.manage.dao.UserDao;
import com.mmd.manage.service.CommonService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommonServiceImpl implements CommonService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private UserDao userDao;
    @Autowired
    private MmdDictDao mmdDictDao;


    @Override
    public List<MmdDict> getDeliveryTrackList() {
        return mmdDictDao.getDictListByType(DictTypeEnums.delivery_track.getType());
    }
}
